home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / xntp3.zip / Config.NeXT < prev    next >
Text File  |  1992-08-13  |  6KB  |  173 lines

  1. # Edit this file to reflect information specific to your installation.
  2. # Then run 'make makefiles' to propagate the information to all the makefiles,
  3.  
  4. #
  5. # Definitions for the library:
  6. #
  7. # You must define one of -DXNTP_BIG_ENDIAN, -DXNTP_LITTLE_ENDIAN
  8. #    or -DXNTP_AUTO_ENDIAN depending on which way your machine's
  9. #    bytes go for the benefit of the DES routine.  Most things
  10. #    sold by DEC, the NS32x32 and the 80386 deserve a
  11. #    -DXNTP_LITTLE_ENDIAN.  Most of the rest of the world does
  12. #    it the other way.  If in doubt, pick one, compile
  13. #    everything and run authstuff/authcert < authstuff/certdata.
  14. #    If everything fails, do it the other way.
  15. #
  16. #    Under BSD, you may define -DXNTP_NETINET_ENDIAN to use
  17. #    netinet/in.h to determine which of -DXNTP_BIG_ENDIAN and
  18. #    XNTP_LITTLE_ENDIAN should be used.
  19. #
  20. LIBDEFS=    -DXNTP_BIG_ENDIAN
  21.  
  22. #
  23. # Library loading:
  24. #
  25. # If you don't want your library ranlib'ed, chose the second line
  26. #
  27. RANLIB=        ranlib -c -s
  28. #RANLIB=    : # ar does the work of ranlib under System V
  29.  
  30. #
  31. # Definitions for programs:
  32. # If your compiler doesn't understand the declaration `signed char',
  33. #       add -DNO_SIGNED_CHAR_DECL.  Your `char' data type had better be
  34. #    signed.  If you don't know what the compiler knows, try it
  35. #    without the flag.  If you get a syntax error on line 13 of
  36. #    ntp.h, add it.  Note that `signed char' is an ANSIism.  Most
  37. #    older, pcc-derived compilers will need this flag.
  38. #
  39. # If your library already has 's_char' defined, add -DS_CHAR_DEFINED.
  40. #
  41. # For SunOS 3.x, add -DSUN_3_3_STINKS (otherwise it will complain
  42. #    about broadaddr and will hang if you run without a -d flag
  43. #    on the command line.  I actually can't believe the latter
  44. #    bug.  If it hangs on your system with the flag defined, peruse
  45. #    xntpd/ntp_io.c for some rude comments about SunOS 3.5 and try it
  46. #    the other way).  This flag affects xntpd only.
  47. #
  48. # For Ultrix 2.0, add -DULT_2_0_SUCKS.  This OS has the same hanging
  49. #    bug as SunOS 3.5 (is this an original 4.2 bug?) and in addition
  50. #    has some strangeness concerning signal masks.  Ultrix 2.3 doesn't
  51. #    have these problems.  If you're running something in between
  52. #    you're on your own.  This flag affects xntpd only.
  53. #
  54. # If your gethostbyname() routine isn't based on the DNS resolver (and,
  55. #    in particular, h_errno doesn't exist) add a -DNODNS.  There
  56. #    doesn't seem to be a good way to detect this automatically which
  57. #    works in all cases.  This flag affects xntpres only.
  58. #
  59. # The flag -DDEBUG includes some debugging code.
  60. #
  61. # The flag -DREFCLOCK causes the basic reference clock support to be
  62. #    compiled into the daemon.  If you set this you will also want
  63. #    to configure the particular clock drivers you want in the
  64. #    CLOCKDEFS= line below.  This flag affects xntpd only.
  65. #
  66. # There is an occurance of a call to rindex() in the daemon.  You may
  67. #    have to include a -Drindex=strrchr to get this to load right.
  68. #
  69. # To change the location of the configuration file, use a
  70. #    -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar.
  71. #
  72. # Under HP-UX, you must use either -Dhpux70 or -Dhpux80 as,
  73. #    well as -DNOKMEM
  74. #
  75. # If your library doesn't include the vsprintf() routine, define
  76. #    NEED_VSPRINTF.
  77. #
  78. # Define -DPPS to include support for a 1-pps signal. Define -DPPSDEV
  79. #    to include a device driver for it. The latter requires a
  80. #    serial port and either a line discipline or STREAMS module.
  81. #    The PPS signal may also be generated via a reference clock
  82. #    module like DCF77. In that case a special define is required for
  83. #    the reference clock module (only one source of PPS signal should
  84. #    be used)
  85. #
  86. #DEFS=-DREFCLOCK -DPPS -DDEBUG -DSYNCTODR_SUCKS -DLOG_NTP=LOG_LOCAL0 -DREADKMEM
  87. DEFS=-DREFCLOCK -DPPS -DDEBUG -DSYNCTODR_SUCKS -DREADKMEM
  88.  
  89. #
  90. #  Authentication types supported.  Choose from DES and MD5.  If you
  91. #  have a 680x0 type CPU and GNU-C, also choose -DFASTMD5
  92. #
  93. AUTHDEFS=-DDES -DMD5 -DFAST_MD5
  94.  
  95. #
  96. # Clock support definitions (these only make sense if -DREFCLOCK used):
  97. #
  98. # Define -DLOCAL_CLOCK to include local pseudo-clock support
  99. #
  100. # Define -DPST to include support for the PST 1020 WWV/H receiver.
  101. #
  102. # Define -DWWVB to include support for the Spectracom 8170 WWVB receiver.
  103. #
  104. # Define -DCHU to include support for a driver to receive the CHU
  105. #    timecode.  Note that to compile in CHU support you must
  106. #    previously have installed the CHU serial line discipline in
  107. #    the kernel of the machine you are doing the compile on.
  108. #
  109. # Define -DDCF to include support for the DCF77 receiver. This code
  110. #    requires a special STREAMS module found in the kernel directory.
  111. # Define -DDCFPPS for PPS support via the DCF77 receiver
  112. #    (see also: -DPPS)
  113. #
  114. # Define -DGOES to support a Kinemetrics TrueTime 468-DC GOES receiver.
  115. #
  116. CLOCKDEFS= -DLOCAL_CLOCK
  117.  
  118. #
  119. # For MIPS 4.3BSD or RISCos 4.0, include a -lmld to get the nlist() routine.
  120. #    If USELIBKVM is defined above, include a -lkvm to get the kernel
  121. #    routines.
  122. #
  123. #DAEMONLIBS= -lmld
  124. #DAEMONLIBS= -lkvm
  125. DAEMONLIBS=
  126.  
  127.  
  128. #
  129. # Name resolver library.  Included when loading xntpres, which calls
  130. # gethostbyname().  Define this if you would rather use a different
  131. # version of the routine than the one in libc.a
  132. #
  133. #RESLIB= -lresolv
  134. RESLIB=
  135.  
  136. #
  137. # Option flags for the C compiler.  Add -g if you want to debug.
  138. # Use -pipe with GNU cc on NeXT if you have reasonable amounts of memory
  139. # and want compiles to go faster.
  140. #
  141. COPTS= -O -pipe
  142.  
  143. #
  144. # C compiler to use.  gcc will work, but avoid the -fstrength-reduce option
  145. # if the version is 1.35 or earlier (using this option caused incorrect
  146. # code to be generated in the DES key permutation code, and perhaps
  147. # elsewhere).
  148. #
  149. COMPILER= cc
  150.  
  151. #
  152. # Directory into which binaries should be installed
  153. #
  154. BINDIR=    /usr/local/bin
  155.  
  156. #
  157. # Special library for adjtime emulation. Used under HP-UX
  158. # (remember to run make in the adjtime directory)
  159. #
  160. #ADJLIB= ../adjtime/libadjtime.a
  161. ADJLIB=
  162.  
  163. #
  164. # BSD emulation library. In theory, this fixes signal semantics under
  165. # HP-UX, but it doesn't work with 8.0 on a 9000s340, so there is now
  166. # a work-around in the code (compiled when hpux80 is defined). In other
  167. # words, use this for HP-UX prior to 8.0.
  168. #
  169. #COMPAT= -lBSD
  170. COMPAT=
  171.  
  172.